<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('数据仓库——车辆预警数据信息列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>车牌种类(号牌种类)：</label>
                                <select name="plateNumberType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>车牌号码：</label>
                                <input type="text" name="plateNumber"/>
                            </li>
                            <li>
                                <label>报警时间：</label>
                                <input type="text" class="time-input" placeholder="请选择报警时间" name="warningTime"/>
                            </li>
                            <li>
                                <label>车辆限速：</label>
                                <input type="text" name="vehicleSpeedLimit"/>
                            </li>
                            <li>
                                <label>卡口编号：</label>
                                <input type="text" name="checkpointCode"/>
                            </li>
                            <li>
                                <label>卡口相机抓拍时间：</label>
                                <input type="text" class="time-input" placeholder="请选择卡口相机抓拍时间" name="checkpointCameraTime"/>
                            </li>
                            <li>
                                <label>报警地点：</label>
                                <input type="text" name="warningAddress"/>
                            </li>
                            <li>
                                <label>报警状态：</label>
                                <select name="warningStatus">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>报警状态翻译：</label>
                                <input type="text" name="warningStatusStr"/>
                            </li>
                            <li>
                                <label>车牌小图片：</label>
                                <input type="text" name="vehicleNumberLogo"/>
                            </li>
                            <li>
                                <label>过车图片：</label>
                                <input type="text" name="vehicleInLogo"/>
                            </li>
                            <li>
                                <label>布控类型：</label>
                                <select name="controlType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>布控类型翻译：</label>
                                <input type="text" name="controlTypeStr"/>
                            </li>
                            <li>
                                <label>布控开始时间：</label>
                                <input type="text" class="time-input" placeholder="请选择布控开始时间" name="controlStartTime"/>
                            </li>
                            <li>
                                <label>布控结束时间：</label>
                                <input type="text" class="time-input" placeholder="请选择布控结束时间" name="controlEndTime"/>
                            </li>
                            <li>
                                <label>短信报警号码：</label>
                                <input type="text" name="tels"/>
                            </li>
                            <li>
                                <label>布控人姓名：</label>
                                <input type="text" name="controlUserName"/>
                            </li>
                            <li>
                                <label>布控人userId：</label>
                                <input type="text" name="controlUserId"/>
                            </li>
                            <li>
                                <label>报警原因：</label>
                                <input type="text" name="warningReason"/>
                            </li>
                            <li>
                                <label>入库时间：</label>
                                <input type="text" class="time-input" placeholder="请选择入库时间" name="inTime"/>
                            </li>
                            <li>
                                <label>经度：</label>
                                <input type="text" name="longitude"/>
                            </li>
                            <li>
                                <label>纬度：</label>
                                <input type="text" name="latitude"/>
                            </li>
                            <li>
                                <label>出警时间：</label>
                                <input type="text" class="time-input" placeholder="请选择出警时间" name="timeAction"/>
                            </li>
                            <li>
                                <label>出警警员：</label>
                                <input type="text" name="policeNumberAction"/>
                            </li>
                            <li>
                                <label>是否删除：</label>
                                <select name="deleteStatus">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>创建者：</label>
                                <input type="text" name="creator"/>
                            </li>
                            <li>
                                <label>创建时间：</label>
                                <input type="text" class="time-input" placeholder="请选择创建时间" name="addTime"/>
                            </li>
                            <li>
                                <label>已通知警员id，待警员确认派遣任务：</label>
                                <input type="text" name="noticePolices"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="llin:warning:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="llin:warning:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="llin:warning:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="llin:warning:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('llin:warning:edit')}]];
        var removeFlag = [[${@permission.hasPermi('llin:warning:remove')}]];
        var prefix = ctx + "llin/warning";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "数据仓库——车辆预警数据信息",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'vehicleWarningId',
                    title: '报警记录ID',
                    visible: false
                },
                {
                    field: 'plateNumberType',
                    title: '车牌种类(号牌种类)'
                },
                {
                    field: 'plateNumber',
                    title: '车牌号码'
                },
                {
                    field: 'warningTime',
                    title: '报警时间'
                },
                {
                    field: 'vehicleSpeedLimit',
                    title: '车辆限速'
                },
                {
                    field: 'checkpointCode',
                    title: '卡口编号'
                },
                {
                    field: 'checkpointCameraTime',
                    title: '卡口相机抓拍时间'
                },
                {
                    field: 'warningAddress',
                    title: '报警地点'
                },
                {
                    field: 'warningStatus',
                    title: '报警状态'
                },
                {
                    field: 'warningStatusStr',
                    title: '报警状态翻译'
                },
                {
                    field: 'vehicleNumberLogo',
                    title: '车牌小图片'
                },
                {
                    field: 'vehicleInLogo',
                    title: '过车图片'
                },
                {
                    field: 'controlType',
                    title: '布控类型'
                },
                {
                    field: 'controlTypeStr',
                    title: '布控类型翻译'
                },
                {
                    field: 'controlStartTime',
                    title: '布控开始时间'
                },
                {
                    field: 'controlEndTime',
                    title: '布控结束时间'
                },
                {
                    field: 'tels',
                    title: '短信报警号码'
                },
                {
                    field: 'controlUserName',
                    title: '布控人姓名'
                },
                {
                    field: 'controlUserId',
                    title: '布控人userId'
                },
                {
                    field: 'warningReason',
                    title: '报警原因'
                },
                {
                    field: 'inTime',
                    title: '入库时间'
                },
                {
                    field: 'longitude',
                    title: '经度'
                },
                {
                    field: 'latitude',
                    title: '纬度'
                },
                {
                    field: 'timeAction',
                    title: '出警时间'
                },
                {
                    field: 'policeNumberAction',
                    title: '出警警员'
                },
                {
                    field: 'deleteStatus',
                    title: '是否删除'
                },
                {
                    field: 'creator',
                    title: '创建者'
                },
                {
                    field: 'addTime',
                    title: '创建时间'
                },
                {
                    field: 'noticePolices',
                    title: '已通知警员id，待警员确认派遣任务'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.vehicleWarningId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.vehicleWarningId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>